package diskmgr;

public class PCounter{

	private static int rcounter;
	private static int wcounter;
	
	public static void initialize()
	{ 
		rcounter = 0;
		wcounter = 0;
	}
	
	public static void readIncrement()
	{
		rcounter++;
	}
	
	public static void writeIncrement()
	{
		wcounter++;
	}
	
	public static void print()
	{
		System.out.println("Pages read: " + rcounter);
		System.out.println("Pages written: " + wcounter);
	}
}




